package org.ghost.wechat.platform.dto.wechat.user;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.ghost.wechat.platform.dto.WeChatErrorRspDTO;

import java.io.Serializable;
import java.util.List;

/**
 * @author 01
 */
public class WeChatUserTagFansRspDTO extends WeChatErrorRspDTO {
    private static final long serialVersionUID = -5083265648261135344L;

    private Long count;
    private String nextOpenId;
    private WeChatUserTagFansItem data;


    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public String getNextOpenId() {
        return nextOpenId;
    }

    @JsonProperty(value = "next_openid")
    public void setNextOpenId(String nextOpenId) {
        this.nextOpenId = nextOpenId;
    }

    public WeChatUserTagFansItem getData() {
        return data;
    }

    public void setData(WeChatUserTagFansItem data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "WeChatUserTagFansRspDTO{" +
                "count=" + count +
                ", nextOpenId='" + nextOpenId + '\'' +
                ", data=" + data +
                ", errCode=" + errCode +
                ", errMsg='" + errMsg + '\'' +
                '}';
    }

    public static class WeChatUserTagFansItem implements Serializable {
        private static final long serialVersionUID = -6640840562220433334L;
        private List<String> openId;

        public List<String> getOpenId() {
            return openId;
        }

        @JsonProperty(value = "openid")
        public void setOpenId(List<String> openId) {
            this.openId = openId;
        }

        @Override
        public String toString() {
            return "WeChatUserTagFansItem{" +
                    "openId=" + openId +
                    '}';
        }
    }
}
